Skip to main content

XPDFViewer_SelectImage

Type

command

Summary

Set the current image selection of the PDF Viewer to a specific range.

Syntax

XPDFViewer_SelectImage <viewerName>, <pageNumber>, <left>, <top>, <right>, <bottom>

Description

The coordinates are real numbers in pdf coordinates rather than integers stack coordinates.

The following errors may be thrown by the command:

  • XPDF_ERROR: incorrect number of parameters
  • XPDF_ERROR: PDF viewer not found

Parameters

NameTypeDescription

viewerName

string

The name of the viewer.

pageNumber

integer

The page the selection is on.

left

real

The left of the selection

top

real

The top of the selection

right

real

The right of the selection

bottom

real

The bottom of the selection

Examples

XPDFViewer_SelectImage "Document1", 1, 10.5, 100.2, 200, 130.4
// Clear the selection
XPDFViewer_SelectImage "Document1",""

Compatibility and Support

Introduced

LiveCode 1.0.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?